home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Jan 2000
- //
- // Description:
- // This script updates optionVar prefs before writing to disk.
- // This script will be called in batch mode.
- //
-
- global proc syncGlobalOptVars()
- {
- global string $gCommandLine;
-
- // Workspace
- string $curWS = `workspace -fn`;
- if ("" != $curWS) {
- optionVar -sv "lastLocalWS" $curWS;
- }
-
- // Command Line
- int $fieldDimensions[] = `paneLayout -q -ps $gCommandLine`;
- optionVar
- -iv commandLineInputFieldWidth $fieldDimensions[0]
- -iv commandLineNumHistoryLines `commandLine -q -numberOfHistoryLines $gCommandLine`;
-
- // Hotbox
- optionVar
- -sv hotBoxDisplayStyle `hotBox -q -displayStyle`
- -iv hotBoxTransparencyLevel `hotBox -q -tr`;
-
- optionVar
- -intValue isHotBoxShowAll `hotBox -q -a`
- -intValue isHotBoxAnimationRowVisible `hotBox -q -at`
- -intValue isHotBoxModelingRowVisible `hotBox -q -mt`
- -intValue isHotBoxDynamicsRowVisible `hotBox -q -dt`
- -intValue isHotBoxRenderingRowVisible `hotBox -q -rt`
- -intValue isHotBoxClothRowVisible `hotBox -q -clt`
- -intValue isHotBoxLiveRowVisible `hotBox -q -lt`
- -intValue isHotBoxCommonRowVisible `hotBox -q -ct`
- -intValue isHotBoxPaneSpecificRowVisible `hotBox -q -pt`
- -intValue isHotBoxRmbPopupsOn `hotBox -q -rmb`;
-
- // MEL
- optionVar
- -iv stackTraceIsOn `stackTrace -q -state`
- -iv showLineNumbersIsOn `commandEcho -q -lineNumbers`;
-
- // Display
- global int $gRefreshMode;
- optionVar -iv refreshMode $gRefreshMode;
-
- // Display Layers
- optionVar
- -iv currentDisplayLayerActive `editDisplayLayerGlobals -q -uc`;
-
- // Shelves
- global string $gShelfTopLevel;
- if (`optionVar -q isShelfSave`) {
- if (`tabLayout -exists $gShelfTopLevel`) {
- saveAllShelves $gShelfTopLevel;
- }
- }
- }
-